package cn.easybuy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.easybuy.entity.Order;
@Repository
public interface OrderMapper {
	public int addOrder(Order order);
	public int updateOrder(Order o);
	public int deleteOrder(Integer id);
	public List<Order> getOrderListByUserId(@Param("userId")Integer userId,@Param("currentPageNo")Integer currentPageNo,@Param("pageSize")Integer pageSize);
	public int getOrderCount(Integer userId);
	public Order getOrdertById(Integer id);
}
